<template>
  <view class="box" @click="goPage('/pages/shop/goodsDetails/goodsDetails')">
    <image src="" mode="aspectFill" />
    <view class="r">
      <view class="tit">【七夕专属】赫莲娜 黑绷带活..</view>
      <view class="label">新用户专享</view>
      <view class="dz">杭州艺星医疗美...</view>
      <view class="js">
        <view class="l">据结束10天 13:10:11</view>
        <view class="r">223人已参加</view>
      </view>
      <view class="jg">
        <view class="l">价值¥ <text>234</text></view>
        <view class="btn">立即报名</view>
      </view>
    </view>
  </view>
</template>
<script setup lang="ts">
import { goPage } from "@/utils/commonFn";
</script>
<style lang="less" scoped>
.box {
  background: #ffffff;
  border-radius: 16rpx 16rpx 16rpx 16rpx;
  border: 2rpx solid #f3f4f6;
  display: flex;
  padding: 32rpx 16rpx;
  margin-top: 30rpx;

  image {
    width: 234rpx;
    height: 176rpx;
    border-radius: 16rpx 16rpx 16rpx 16rpx;
    background: #ff3366;
    margin-right: 20rpx;
  }
  .r {
    width: calc(100% - 254rpx);
    .tit {
      font-size: 28rpx;
      color: #333333;
      text-overflow: ellipsis;
      overflow: hidden;
      white-space: nowrap;
    }
    .label {
      background: #ea3b3b;
      border-radius: 8rpx;
      width: 136rpx;
      height: 34rpx;
      font-size: 24rpx;
      color: #ffffff;
      text-align: center;
      margin-top: 8rpx;
    }
    .dz {
      font-size: 24rpx;
      color: #8a8a8d;
      margin-top: 8rpx;
    }
    .js {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 22rpx;
      margin-top: 8rpx;

      .l {
        color: #81d8d0;
      }
      .r {
        color: #ea3b3b;
      }
    }
    .jg {
      display: flex;
      justify-content: space-between;
      margin-top: 43rpx;
      .l {
        font-size: 24rpx;
        color: #ea3b3b;
        text {
          font-size: 36rpx;
        }
      }
      .btn {
        background: #81d8d0;
        border-radius: 200rpx;
        font-size: 24rpx;
        color: #ffffff;
        padding: 10rpx 24rpx;
      }
    }
  }
}
</style>
